import requests
import random

url = "https://www.baidu.com/"
header = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.88 Safari/537.36"
}

a = {"http": "113.120.62.46:9999"}
free_proxy = [
    {"http": "http://113.120.62.46:9999"},
    {"http": "http://223.241.22.237:30001"},
    {"http": "http://60.188.12.39:3000"},
    {"http": "http://112.95.23.129:8888"},
    {"http": "http://182.88.117.185:9797"},
    {"http": "http://139.199.250.226:808"},
    {"http": "http://112.95.23.136:8888"},
    {"http": "http://183.129.207.87:12844"}
]
print(random.choice(free_proxy))
response = requests.get(url, headers=header, proxies=random.choice(free_proxy))
print(response.status_code)
